﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;

namespace Mindfor.Web.Modules.FeedBack
{
	public class FeedBackItemMap : ClassMap<FeedBackItem>
	{
		public FeedBackItemMap()
		{
			Table("FeedBack");
			Id(m => m.Id);
			Map(m => m.Date);
			Map(m => m.Text).Not.Nullable();
			Map(m => m.Email).Length(255).Nullable();
			Map(m => m.Phone).Length(20).Nullable();
			Map(m => m.Answer).Nullable();
			Map(m => m.Sender).Length(255).Nullable();
		}
	}
}